Automattic\Jetpack\Blaze\Dashboard_REST_Controller B

Total Complexity 80
Dependencies 7
Dependents 1
Total lines 871
Lines of code 517
Logical lines of code 172
Comment lines 259
Methods 35
Properties 1

Methods 35

Method Rating Maintainability Complexity Lines of code
register_rest_routes()
A
29
2 222
add_prices_in_posts()
A
46 12 35
upload_image_to_current_website()
S
47 6 36
get_blaze_posts()
S
54 6 21
get_dsp_blaze_posts()
S
57 6 17
request_as_user()
S
51 5 27
get_blaze_error()
S
56 4 18
build_subpath_with_query_strings()
S
60 4 14
is_user_connected()
S
69 3 7
edit_dsp_generic()
S
59 2 15
can_user_view_dsp_callback()
S
67 3 9
get_dsp_generic()
S
60 2 14
get_dsp_media()
S
68 2 7
get_dsp_site_campaigns()
S
68 2 7
get_forbidden_error()
S
68 1 7
edit_dsp_smart()
S
79 1 3
edit_dsp_logs()
S
79 1 3
edit_dsp_payments()
S
78 1 3
edit_dsp_subscriptions()
S
78 1 3
edit_dsp_campaigns()
S
73 1 4
edit_wpcom_checkout()
S
78 1 3
get_dsp_smart()
S
79 1 3
get_dsp_image()
S
79 1 3
get_dsp_woo()
S
79 1 3
get_dsp_locations()
S
79 1 3
get_dsp_payments()
S
79 1 3
get_dsp_subscriptions()
S
79 1 3
get_dsp_templates()
S
79 1 3
get_dsp_user()
S
79 1 3
get_dsp_search()
S
79 1 3
get_dsp_campaigns()
S
79 1 3
get_dsp_experiments()
S
79 1 3
get_dsp_credits()
S
79 1 3
get_dsp_openverse()
S
79 1 3
get_site_id()
S
81 1 3